import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/components/Index'
import Register from '@/components/Register'
import Login from '@/components/Login'
import Order from '@/components/Order'
import My from '@/components/My'
import Userpwd from '@/components/Userpwd'
import Userinfo from '@/components/Userinfo'
import ShopDetail from '@/components/ShopDetail'
import Cart from '@/components/Cart'
import Pjia from '@/components/Pjia'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index
    },
    {
      path: '/index',
      name: 'Index',
      component: Index
    },
    {
      path: '/register',
      name: 'Register',
      component: Register
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/order',
      name: 'Order',
      component: Order
    },    
    {
      path: '/my',
      name: 'My',
      component: My
    },
    {
      path: '/userinfo',
      name: 'Userinfo',
      component: Userinfo
    },
    {
      path: '/userpwd',
      name: 'Userpwd',
      component: Userpwd
    },
    {
      path: '/shopdetail',
      name: 'ShopDetail',
      component: ShopDetail
    },
    {
      path: '/cart',
      name: 'Cart',
      component: Cart
    },
    {
      path: '/pjia',
      name: 'Pjia',
      component: Pjia
    },
  ]
})
